<template>
    <div class="leftNavWrap">
        <div class="leftNav"><slot name='leftNav'/></div>
        <div class="rightContent"><slot/></div>
    </div>
</template>

<script>
import { reactive,toRefs,getCurrentInstance } from 'vue'
import {useRoute,useRouter} from 'vue-router'
import { useStore } from 'vuex'

export default {
    components:{
       
    },
    props:{

    },
    setup(props,context){
        const router = useRouter()
        const route = useRoute()
        const store = useStore()
        const {proxy} = getCurrentInstance()

        const state = reactive({
            
        })

        return{
            ...toRefs(state)
        }
    }
}
</script>

<style lang="scss" scoped>
    .leftNavWrap{
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        overflow: hidden;
        flex-shrink: 0;
        background: url(/images/body2.png) left top no-repeat;
        background-size: 100% 100%; 
        .rightContent{
            flex: 1;
            height: 100%;
            overflow: hidden;
        }
    }
</style>